package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsAppModuleMapper;
import com.ruoyi.cms.domain.CmsAppModule;
import com.ruoyi.cms.service.ICmsAppModuleService;

/**
 * app模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-08
 */
@Service
public class CmsAppModuleServiceImpl implements ICmsAppModuleService 
{
    @Autowired
    private CmsAppModuleMapper cmsAppModuleMapper;

    /**
     * 查询app模块
     * 
     * @param id3 app模块主键
     * @return app模块
     */
    @Override
    public CmsAppModule selectCmsAppModuleById3(Long id3)
    {
        return cmsAppModuleMapper.selectCmsAppModuleById3(id3);
    }

    /**
     * 查询app模块列表
     * 
     * @param cmsAppModule app模块
     * @return app模块
     */
    @Override
    public List<CmsAppModule> selectCmsAppModuleList(CmsAppModule cmsAppModule)
    {
        return cmsAppModuleMapper.selectCmsAppModuleList(cmsAppModule);
    }

    /**
     * 新增app模块
     * 
     * @param cmsAppModule app模块
     * @return 结果
     */
    @Override
    public int insertCmsAppModule(CmsAppModule cmsAppModule)
    {
        return cmsAppModuleMapper.insertCmsAppModule(cmsAppModule);
    }

    /**
     * 修改app模块
     * 
     * @param cmsAppModule app模块
     * @return 结果
     */
    @Override
    public int updateCmsAppModule(CmsAppModule cmsAppModule)
    {
        return cmsAppModuleMapper.updateCmsAppModule(cmsAppModule);
    }

    /**
     * 批量删除app模块
     * 
     * @param id3s 需要删除的app模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsAppModuleById3s(Long[] id3s)
    {
        return cmsAppModuleMapper.deleteCmsAppModuleById3s(id3s);
    }

    /**
     * 删除app模块信息
     * 
     * @param id3 app模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsAppModuleById3(Long id3)
    {
        return cmsAppModuleMapper.deleteCmsAppModuleById3(id3);
    }
}
